#include"log.hh"

using std::cout;
using std::cin;
using std::endl;
using std::string;

int main(void)
{
    Mylogger::getInstance()->error("this log is error");
    Mylogger::getInstance()->info("this log is error");
    Mylogger::getInstance()->debug("this log is error");
    Mylogger::getInstance()->warn("this log is error");
    Mylogger::getInstance()->changeDegree(Priority::DEBUG);
    Mylogger::getInstance()->error("this log is error");
    Mylogger::getInstance()->info("this log is error");
    Mylogger::getInstance()->debug("this log is error");
    Mylogger::getInstance()->warn("this log is error");
    LogInfo("test info");
    LogERROR("test error");
    LogDebug("test debug");
    LogWarn("test warn");
    Mylogger::getInstance()->changeDegree(Priority::WARN);
    LogInfo("test info");
    LogERROR("test error");
    LogDebug("test debug");
    LogWarn("test warn");
    Mylogger::destory();
}

